"use client";

import { useAuth } from './AuthContext';

export function SessionProvider({ children }: { children: React.ReactNode }) {
  const { isLoading } = useAuth();

  if (isLoading) {
    return (
      <div className="flex h-screen w-full items-center justify-center">
        <p>正在加载会话...</p>
      </div>
    );
  }

  return <>{children}</>;
} 